Execute a script that is placed in the body section:

<html>
  <head>
  </head>
<[...]>
        <script type="text/javascript">
                    document.write("This message is written when the page loads")
        </script>
</body>
</html>